package java_persistence;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import domain.Doctor;

/**
 * @author joseph simoneau <simoneau@gatech.edu>
 *
 */
public interface DoctorMapper {
	
	// CREATES

	/**Promotes the user with username u to a doctor within the database.
	 * @param u the username
	 */
	public void create_doctor(@Param("username") String u);
	
	// RETRIEVES
	
	/**Retrieves Doctor objects for each doctor stored in the database, including their user information.   
	 * @return a list of Doctors.
	 */
	public List<Doctor> get_doctors();
	public Doctor get_doctor_by_username(@Param("username") String un);
	
	// UPDATES
	
	// DELETES
	
	/**Demotes a user from being a doctor.  It does not actually delete the user.
	 * @param u the username. 
	 */
	public void remove_doctor(@Param("username") String u);
}
